package com.explorati.design_pattern.behavior.strategy.example;

public abstract class DiscountStrategy {

	// 书的价格
	private double price = 0;
	// 书的数量
	private int num = 0;

	// 构造函数
	public DiscountStrategy(double price, int num) {
		this.price = price;
		this.num = num;
	}

	public double getPrice() {
		return price;
	}

	public int getNum() {
		return num;
	}

	public abstract double calculateDiscount();

}
